import os

for f in os.listdir("."):
	if f.lower().endswith(".vtf"):
		outpath = f[:-2] + "mt"
		
		if os.path.exists(outpath) and os.path.isfile(outpath):
			os.remove(outpath)
		
		print "Converting %s..." % f[:-4]
		file = open(outpath, "w")
		file.write(""""UnlitGeneric"
{
	"$basetexture"		"gui/silkicons/%s"
	"$ignorez"			1
	"$vertexcolor" 		1
	"$vertexalpha" 		1
	"$nolod" 			1
}""" % outpath[:-4])
		file.close()